<?php


/**
 * Base class that represents a query for the 'view_bonus_goals_report' table.
 *
 *
 *
 * @method EmpevalViewBonusGoalsReportQuery orderByBonusGoalsFormId($order = Criteria::ASC) Order by the bonus_goals_form_id column
 * @method EmpevalViewBonusGoalsReportQuery orderByGoalId($order = Criteria::ASC) Order by the goal_id column
 * @method EmpevalViewBonusGoalsReportQuery orderByType($order = Criteria::ASC) Order by the type column
 * @method EmpevalViewBonusGoalsReportQuery orderByFname($order = Criteria::ASC) Order by the fname column
 * @method EmpevalViewBonusGoalsReportQuery orderByLname($order = Criteria::ASC) Order by the lname column
 * @method EmpevalViewBonusGoalsReportQuery orderByDepartment($order = Criteria::ASC) Order by the department column
 * @method EmpevalViewBonusGoalsReportQuery orderByBonusGoalDesc($order = Criteria::ASC) Order by the bonus_goal_desc column
 * @method EmpevalViewBonusGoalsReportQuery orderByDescOfIndicator($order = Criteria::ASC) Order by the desc_of_indicator column
 * @method EmpevalViewBonusGoalsReportQuery orderByWeight($order = Criteria::ASC) Order by the weight column
 * @method EmpevalViewBonusGoalsReportQuery orderByRealization80($order = Criteria::ASC) Order by the realization_80 column
 * @method EmpevalViewBonusGoalsReportQuery orderByRealization100($order = Criteria::ASC) Order by the realization_100 column
 *
 * @method EmpevalViewBonusGoalsReportQuery groupByBonusGoalsFormId() Group by the bonus_goals_form_id column
 * @method EmpevalViewBonusGoalsReportQuery groupByGoalId() Group by the goal_id column
 * @method EmpevalViewBonusGoalsReportQuery groupByType() Group by the type column
 * @method EmpevalViewBonusGoalsReportQuery groupByFname() Group by the fname column
 * @method EmpevalViewBonusGoalsReportQuery groupByLname() Group by the lname column
 * @method EmpevalViewBonusGoalsReportQuery groupByDepartment() Group by the department column
 * @method EmpevalViewBonusGoalsReportQuery groupByBonusGoalDesc() Group by the bonus_goal_desc column
 * @method EmpevalViewBonusGoalsReportQuery groupByDescOfIndicator() Group by the desc_of_indicator column
 * @method EmpevalViewBonusGoalsReportQuery groupByWeight() Group by the weight column
 * @method EmpevalViewBonusGoalsReportQuery groupByRealization80() Group by the realization_80 column
 * @method EmpevalViewBonusGoalsReportQuery groupByRealization100() Group by the realization_100 column
 *
 * @method EmpevalViewBonusGoalsReportQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
 * @method EmpevalViewBonusGoalsReportQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
 * @method EmpevalViewBonusGoalsReportQuery innerJoin($relation) Adds a INNER JOIN clause to the query
 *
 * @method EmpevalViewBonusGoalsReport findOne(PropelPDO $con = null) Return the first EmpevalViewBonusGoalsReport matching the query
 * @method EmpevalViewBonusGoalsReport findOneOrCreate(PropelPDO $con = null) Return the first EmpevalViewBonusGoalsReport matching the query, or a new EmpevalViewBonusGoalsReport object populated from the query conditions when no match is found
 *
 * @method EmpevalViewBonusGoalsReport findOneByBonusGoalsFormId(int $bonus_goals_form_id) Return the first EmpevalViewBonusGoalsReport filtered by the bonus_goals_form_id column
 * @method EmpevalViewBonusGoalsReport findOneByGoalId(int $goal_id) Return the first EmpevalViewBonusGoalsReport filtered by the goal_id column
 * @method EmpevalViewBonusGoalsReport findOneByType(int $type) Return the first EmpevalViewBonusGoalsReport filtered by the type column
 * @method EmpevalViewBonusGoalsReport findOneByFname(string $fname) Return the first EmpevalViewBonusGoalsReport filtered by the fname column
 * @method EmpevalViewBonusGoalsReport findOneByLname(string $lname) Return the first EmpevalViewBonusGoalsReport filtered by the lname column
 * @method EmpevalViewBonusGoalsReport findOneByDepartment(string $department) Return the first EmpevalViewBonusGoalsReport filtered by the department column
 * @method EmpevalViewBonusGoalsReport findOneByBonusGoalDesc(string $bonus_goal_desc) Return the first EmpevalViewBonusGoalsReport filtered by the bonus_goal_desc column
 * @method EmpevalViewBonusGoalsReport findOneByDescOfIndicator(string $desc_of_indicator) Return the first EmpevalViewBonusGoalsReport filtered by the desc_of_indicator column
 * @method EmpevalViewBonusGoalsReport findOneByWeight(int $weight) Return the first EmpevalViewBonusGoalsReport filtered by the weight column
 * @method EmpevalViewBonusGoalsReport findOneByRealization80(string $realization_80) Return the first EmpevalViewBonusGoalsReport filtered by the realization_80 column
 * @method EmpevalViewBonusGoalsReport findOneByRealization100(string $realization_100) Return the first EmpevalViewBonusGoalsReport filtered by the realization_100 column
 *
 * @method array findByBonusGoalsFormId(int $bonus_goals_form_id) Return EmpevalViewBonusGoalsReport objects filtered by the bonus_goals_form_id column
 * @method array findByGoalId(int $goal_id) Return EmpevalViewBonusGoalsReport objects filtered by the goal_id column
 * @method array findByType(int $type) Return EmpevalViewBonusGoalsReport objects filtered by the type column
 * @method array findByFname(string $fname) Return EmpevalViewBonusGoalsReport objects filtered by the fname column
 * @method array findByLname(string $lname) Return EmpevalViewBonusGoalsReport objects filtered by the lname column
 * @method array findByDepartment(string $department) Return EmpevalViewBonusGoalsReport objects filtered by the department column
 * @method array findByBonusGoalDesc(string $bonus_goal_desc) Return EmpevalViewBonusGoalsReport objects filtered by the bonus_goal_desc column
 * @method array findByDescOfIndicator(string $desc_of_indicator) Return EmpevalViewBonusGoalsReport objects filtered by the desc_of_indicator column
 * @method array findByWeight(int $weight) Return EmpevalViewBonusGoalsReport objects filtered by the weight column
 * @method array findByRealization80(string $realization_80) Return EmpevalViewBonusGoalsReport objects filtered by the realization_80 column
 * @method array findByRealization100(string $realization_100) Return EmpevalViewBonusGoalsReport objects filtered by the realization_100 column
 *
 * @package    propel.generator.empeval.om
 */
abstract class EmpevalBaseViewBonusGoalsReportQuery extends ModelCriteria
{
    /**
     * Initializes internal state of EmpevalBaseViewBonusGoalsReportQuery object.
     *
     * @param     string $dbName The dabase name
     * @param     string $modelName The phpName of a model, e.g. 'Book'
     * @param     string $modelAlias The alias for the model in this query, e.g. 'b'
     */
    public function __construct($dbName = 'vgp_empeval', $modelName = 'EmpevalViewBonusGoalsReport', $modelAlias = null)
    {
        parent::__construct($dbName, $modelName, $modelAlias);
    }

    /**
     * Returns a new EmpevalViewBonusGoalsReportQuery object.
     *
     * @param     string $modelAlias The alias of a model in the query
     * @param     EmpevalViewBonusGoalsReportQuery|Criteria $criteria Optional Criteria to build the query from
     *
     * @return EmpevalViewBonusGoalsReportQuery
     */
    public static function create($modelAlias = null, $criteria = null)
    {
        if ($criteria instanceof EmpevalViewBonusGoalsReportQuery) {
            return $criteria;
        }
        $query = new EmpevalViewBonusGoalsReportQuery();
        if (null !== $modelAlias) {
            $query->setModelAlias($modelAlias);
        }
        if ($criteria instanceof Criteria) {
            $query->mergeWith($criteria);
        }

        return $query;
    }

    /**
     * Find object by primary key.
     * Propel uses the instance pool to skip the database if the object exists.
     * Go fast if the query is untouched.
     *
     * <code>
     * $obj  = $c->findPk(12, $con);
     * </code>
     *
     * @param mixed $key Primary key to use for the query
     * @param     PropelPDO $con an optional connection object
     *
     * @return   EmpevalViewBonusGoalsReport|EmpevalViewBonusGoalsReport[]|mixed the result, formatted by the current formatter
     */
    public function findPk($key, $con = null)
    {
        if ($key === null) {
            return null;
        }
        if ((null !== ($obj = EmpevalViewBonusGoalsReportPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {
            // the object is alredy in the instance pool
            return $obj;
        }
        if ($con === null) {
            $con = Propel::getConnection(EmpevalViewBonusGoalsReportPeer::DATABASE_NAME, Propel::CONNECTION_READ);
        }
        $this->basePreSelect($con);
        if ($this->formatter || $this->modelAlias || $this->with || $this->select
         || $this->selectColumns || $this->asColumns || $this->selectModifiers
         || $this->map || $this->having || $this->joins) {
            return $this->findPkComplex($key, $con);
        } else {
            return $this->findPkSimple($key, $con);
        }
    }

    /**
     * Find object by primary key using raw SQL to go fast.
     * Bypass doSelect() and the object formatter by using generated code.
     *
     * @param     mixed $key Primary key to use for the query
     * @param     PropelPDO $con A connection object
     *
     * @return   EmpevalViewBonusGoalsReport A model object, or null if the key is not found
     * @throws   PropelException
     */
    protected function findPkSimple($key, $con)
    {
        $sql = 'SELECT BONUS_GOALS_FORM_ID, GOAL_ID, TYPE, FNAME, LNAME, DEPARTMENT, BONUS_GOAL_DESC, DESC_OF_INDICATOR, WEIGHT, REALIZATION_80, REALIZATION_100 FROM view_bonus_goals_report WHERE BONUS_GOALS_FORM_ID = :p0';
        try {
            $stmt = $con->prepare($sql);
            $stmt->bindValue(':p0', $key, PDO::PARAM_INT);
            $stmt->execute();
        } catch (Exception $e) {
            Propel::log($e->getMessage(), Propel::LOG_ERR);
            throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);
        }
        $obj = null;
        if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
            $obj = new EmpevalViewBonusGoalsReport();
            $obj->hydrate($row);
            EmpevalViewBonusGoalsReportPeer::addInstanceToPool($obj, (string) $key);
        }
        $stmt->closeCursor();

        return $obj;
    }

    /**
     * Find object by primary key.
     *
     * @param     mixed $key Primary key to use for the query
     * @param     PropelPDO $con A connection object
     *
     * @return EmpevalViewBonusGoalsReport|EmpevalViewBonusGoalsReport[]|mixed the result, formatted by the current formatter
     */
    protected function findPkComplex($key, $con)
    {
        // As the query uses a PK condition, no limit(1) is necessary.
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $stmt = $criteria
            ->filterByPrimaryKey($key)
            ->doSelect($con);

        return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
    }

    /**
     * Find objects by primary key
     * <code>
     * $objs = $c->findPks(array(12, 56, 832), $con);
     * </code>
     * @param     array $keys Primary keys to use for the query
     * @param     PropelPDO $con an optional connection object
     *
     * @return PropelObjectCollection|EmpevalViewBonusGoalsReport[]|mixed the list of results, formatted by the current formatter
     */
    public function findPks($keys, $con = null)
    {
        if ($con === null) {
            $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);
        }
        $this->basePreSelect($con);
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $stmt = $criteria
            ->filterByPrimaryKeys($keys)
            ->doSelect($con);

        return $criteria->getFormatter()->init($criteria)->format($stmt);
    }

    /**
     * Filter the query by primary key
     *
     * @param     mixed $key Primary key to use for the query
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByPrimaryKey($key)
    {

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::BONUS_GOALS_FORM_ID, $key, Criteria::EQUAL);
    }

    /**
     * Filter the query by a list of primary keys
     *
     * @param     array $keys The list of primary key to use for the query
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByPrimaryKeys($keys)
    {

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::BONUS_GOALS_FORM_ID, $keys, Criteria::IN);
    }

    /**
     * Filter the query on the bonus_goals_form_id column
     *
     * Example usage:
     * <code>
     * $query->filterByBonusGoalsFormId(1234); // WHERE bonus_goals_form_id = 1234
     * $query->filterByBonusGoalsFormId(array(12, 34)); // WHERE bonus_goals_form_id IN (12, 34)
     * $query->filterByBonusGoalsFormId(array('min' => 12)); // WHERE bonus_goals_form_id > 12
     * </code>
     *
     * @param     mixed $bonusGoalsFormId The value to use as filter.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByBonusGoalsFormId($bonusGoalsFormId = null, $comparison = null)
    {
        if (is_array($bonusGoalsFormId) && null === $comparison) {
            $comparison = Criteria::IN;
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::BONUS_GOALS_FORM_ID, $bonusGoalsFormId, $comparison);
    }

    /**
     * Filter the query on the goal_id column
     *
     * Example usage:
     * <code>
     * $query->filterByGoalId(1234); // WHERE goal_id = 1234
     * $query->filterByGoalId(array(12, 34)); // WHERE goal_id IN (12, 34)
     * $query->filterByGoalId(array('min' => 12)); // WHERE goal_id > 12
     * </code>
     *
     * @param     mixed $goalId The value to use as filter.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByGoalId($goalId = null, $comparison = null)
    {
        if (is_array($goalId)) {
            $useMinMax = false;
            if (isset($goalId['min'])) {
                $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::GOAL_ID, $goalId['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($goalId['max'])) {
                $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::GOAL_ID, $goalId['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::GOAL_ID, $goalId, $comparison);
    }

    /**
     * Filter the query on the type column
     *
     * Example usage:
     * <code>
     * $query->filterByType(1234); // WHERE type = 1234
     * $query->filterByType(array(12, 34)); // WHERE type IN (12, 34)
     * $query->filterByType(array('min' => 12)); // WHERE type > 12
     * </code>
     *
     * @param     mixed $type The value to use as filter.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByType($type = null, $comparison = null)
    {
        if (is_array($type)) {
            $useMinMax = false;
            if (isset($type['min'])) {
                $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::TYPE, $type['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($type['max'])) {
                $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::TYPE, $type['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::TYPE, $type, $comparison);
    }

    /**
     * Filter the query on the fname column
     *
     * Example usage:
     * <code>
     * $query->filterByFname('fooValue');   // WHERE fname = 'fooValue'
     * $query->filterByFname('%fooValue%'); // WHERE fname LIKE '%fooValue%'
     * </code>
     *
     * @param     string $fname The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByFname($fname = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($fname)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $fname)) {
                $fname = str_replace('*', '%', $fname);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::FNAME, $fname, $comparison);
    }

    /**
     * Filter the query on the lname column
     *
     * Example usage:
     * <code>
     * $query->filterByLname('fooValue');   // WHERE lname = 'fooValue'
     * $query->filterByLname('%fooValue%'); // WHERE lname LIKE '%fooValue%'
     * </code>
     *
     * @param     string $lname The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByLname($lname = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($lname)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $lname)) {
                $lname = str_replace('*', '%', $lname);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::LNAME, $lname, $comparison);
    }

    /**
     * Filter the query on the department column
     *
     * Example usage:
     * <code>
     * $query->filterByDepartment('fooValue');   // WHERE department = 'fooValue'
     * $query->filterByDepartment('%fooValue%'); // WHERE department LIKE '%fooValue%'
     * </code>
     *
     * @param     string $department The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByDepartment($department = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($department)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $department)) {
                $department = str_replace('*', '%', $department);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::DEPARTMENT, $department, $comparison);
    }

    /**
     * Filter the query on the bonus_goal_desc column
     *
     * Example usage:
     * <code>
     * $query->filterByBonusGoalDesc('fooValue');   // WHERE bonus_goal_desc = 'fooValue'
     * $query->filterByBonusGoalDesc('%fooValue%'); // WHERE bonus_goal_desc LIKE '%fooValue%'
     * </code>
     *
     * @param     string $bonusGoalDesc The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByBonusGoalDesc($bonusGoalDesc = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($bonusGoalDesc)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $bonusGoalDesc)) {
                $bonusGoalDesc = str_replace('*', '%', $bonusGoalDesc);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::BONUS_GOAL_DESC, $bonusGoalDesc, $comparison);
    }

    /**
     * Filter the query on the desc_of_indicator column
     *
     * Example usage:
     * <code>
     * $query->filterByDescOfIndicator('fooValue');   // WHERE desc_of_indicator = 'fooValue'
     * $query->filterByDescOfIndicator('%fooValue%'); // WHERE desc_of_indicator LIKE '%fooValue%'
     * </code>
     *
     * @param     string $descOfIndicator The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByDescOfIndicator($descOfIndicator = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($descOfIndicator)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $descOfIndicator)) {
                $descOfIndicator = str_replace('*', '%', $descOfIndicator);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::DESC_OF_INDICATOR, $descOfIndicator, $comparison);
    }

    /**
     * Filter the query on the weight column
     *
     * Example usage:
     * <code>
     * $query->filterByWeight(1234); // WHERE weight = 1234
     * $query->filterByWeight(array(12, 34)); // WHERE weight IN (12, 34)
     * $query->filterByWeight(array('min' => 12)); // WHERE weight > 12
     * </code>
     *
     * @param     mixed $weight The value to use as filter.
     *              Use scalar values for equality.
     *              Use array values for in_array() equivalent.
     *              Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByWeight($weight = null, $comparison = null)
    {
        if (is_array($weight)) {
            $useMinMax = false;
            if (isset($weight['min'])) {
                $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::WEIGHT, $weight['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($weight['max'])) {
                $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::WEIGHT, $weight['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::WEIGHT, $weight, $comparison);
    }

    /**
     * Filter the query on the realization_80 column
     *
     * Example usage:
     * <code>
     * $query->filterByRealization80('fooValue');   // WHERE realization_80 = 'fooValue'
     * $query->filterByRealization80('%fooValue%'); // WHERE realization_80 LIKE '%fooValue%'
     * </code>
     *
     * @param     string $realization80 The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByRealization80($realization80 = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($realization80)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $realization80)) {
                $realization80 = str_replace('*', '%', $realization80);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::REALIZATION_80, $realization80, $comparison);
    }

    /**
     * Filter the query on the realization_100 column
     *
     * Example usage:
     * <code>
     * $query->filterByRealization100('fooValue');   // WHERE realization_100 = 'fooValue'
     * $query->filterByRealization100('%fooValue%'); // WHERE realization_100 LIKE '%fooValue%'
     * </code>
     *
     * @param     string $realization100 The value to use as filter.
     *              Accepts wildcards (* and % trigger a LIKE)
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function filterByRealization100($realization100 = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($realization100)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $realization100)) {
                $realization100 = str_replace('*', '%', $realization100);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::REALIZATION_100, $realization100, $comparison);
    }

    /**
     * Exclude object from result
     *
     * @param   EmpevalViewBonusGoalsReport $viewBonusGoalsReport Object to remove from the list of results
     *
     * @return EmpevalViewBonusGoalsReportQuery The current query, for fluid interface
     */
    public function prune($viewBonusGoalsReport = null)
    {
        if ($viewBonusGoalsReport) {
            $this->addUsingAlias(EmpevalViewBonusGoalsReportPeer::BONUS_GOALS_FORM_ID, $viewBonusGoalsReport->getBonusGoalsFormId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }

}
